package com.ccbooks.listener;

import com.ccbooks.view.BookContentView;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.SeekBar;
import android.widget.TextView;

public class BtnFontClick implements OnClickListener{

	private BookContentView bcv ;
	private LinearLayout btnLightEnter; //亮度调节悬浮框；
	private LinearLayout btnFontEnter;  //字体调节悬浮框；

	public BtnFontClick(BookContentView bcv ,LinearLayout btnLightEnter, LinearLayout btnFontEnter) {
		super();
		this.bcv = bcv ;
		this.btnLightEnter = btnLightEnter;
		this.btnFontEnter = btnFontEnter;
	}


	
	
	
	// 点击字体按钮；
	

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			
		switch (bcv.showFontEnter) {
			 case 1 : 
				 btnFontEnter.setVisibility(View.VISIBLE);
					btnLightEnter.setVisibility(View.GONE);
			bcv.showFontEnter = 2;
					break; 
			 case 2 : 
				 	btnLightEnter.setVisibility(View.GONE);
					btnFontEnter.setVisibility(View.GONE);
			bcv.showFontEnter = 1;
					break; 
			 case 3 : 
					break; 
			 
			 default : 
				 	break; 
			}

		}
	
}
